<?php
namespace Nanastroj;
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Utils
 *
 * @author jirka
 */
class Utils {
	/* only for public atributes */
	public static function objectToArray($object, $attributes = array()) {
		$result = array();
		
		foreach ($attributes as $attribute) {
			$result[$attribute] = $object->$attribute;
		}

		return $result;
	}
}
